/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.database;

import java.sql.Connection;
import java.sql.SQLException;

/**
 *
 * @author Administrator
 */
public class SyncWriterDao {
    private Connection conn = null;

    public Connection getConn() {
        return conn;
    }

    public void setConn(Connection conn) {
        this.conn = conn;
    }
    public SyncWriterDao(Connection conn){
        this.conn = conn;       
    }
    
    public void startTransaction() throws SQLException{
        conn.setAutoCommit(false);
    }
    
    public void commitTransaction() throws SQLException{
        conn.commit();
    }
    
    public void rollbackTransaction() throws SQLException{
        conn.rollback();
    }
    
    public void excute(String sql) throws SQLException{
                
    }
}
